package com.example.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Api
@Controller
public class userController {
    @ApiOperation("获取所有用户信息")
    @GetMapping("/users")
    @ResponseBody
    public String user(){
        return "[张三,李四,王五]";
    }
}
